package com.sk.tools.excel.meta.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class SheetMeta {
    private List<ColumnMeta> columns;
    private int index;
    private String name;

    @JsonProperty("ddl-auto")
    private boolean ddlAuto;
    private String table;
    private String idColumn;
    private String idGenerator;

    public List<ColumnMeta> getColumns() {
        return columns;
    }

    public void setColumns(List<ColumnMeta> columns) {
        this.columns = columns;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isDdlAuto() {
        return ddlAuto;
    }


    public void setDdlAuto(boolean ddlAuto) {
        this.ddlAuto = ddlAuto;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public String getIdColumn() {
        return idColumn;
    }

    public void setIdColumn(String idColumn) {
        this.idColumn = idColumn;
    }

    public String getIdGenerator() {
        return idGenerator;
    }

    public void setIdGenerator(String idGenerator) {
        this.idGenerator = idGenerator;
    }

    @Override
    public String toString() {
        return "SheetMeta{" +
                "columns=" + columns +
                ", index=" + index +
                ", name='" + name + '\'' +
                ", ddlAuto=" + ddlAuto +
                ", table='" + table + '\'' +
                ", idColumn='" + idColumn + '\'' +
                ", idGenerator='" + idGenerator + '\'' +
                '}';
    }
}
